﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Framework.Portal.Payment
{
    /// <summary>
    /// Summary description for Authorize
    /// </summary>
    public class Authorize : IHttpHandler
    {

        public void ProcessRequest(HttpContext context)
        {
            string _code = string.Empty;
            if (!string.IsNullOrEmpty(context.Request.Params["code"]))
                _code = context.Request.Params["code"];
            context.Response.ContentType = "text/plain";
            if (!string.IsNullOrEmpty(_code))
                context.Response.Write(_code);
            else
                context.Response.Write("Hello World");
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}